/**
 * 
 */
package com.manthano.util.file.imports;

import java.io.Serializable;
import java.util.List;

/**
 * @author Vaibhav.Singh
 * @param <k>
 */
public class ImportResult<k> implements Serializable
{
	/**
	 * 
	 */
	private static final long		serialVersionUID	= 8358716482014336908L;
	private Object					results				= null;
	private List<ImportRowError>	errors				= null;

	/**
	 * @param results
	 * @param errors
	 */
	public ImportResult(Object results, List<ImportRowError> errors)
	{
		this.results = results;
		this.errors = errors;
	}

	/**
	 * @return the results
	 */
	@SuppressWarnings("unchecked")
	public k getResults()
	{
		return (k) results;
	}

	/**
	 * @param results
	 *            the results to set
	 */
	public void setResults(k results)
	{
		this.results = results;
	}

	/**
	 * @return the errors
	 */
	public List<ImportRowError> getErrors()
	{
		return errors;
	}

	/**
	 * @param errors
	 *            the errors to set
	 */
	public void setErrors(List<ImportRowError> errors)
	{
		this.errors = errors;
	}
}
